#include "main.h"
#include "stm32f4xx_hal.h"


#define SA				0x00 //
#define RAM_ACCESS		0x00 //RAM access command
#define EEPROM_ACCESS	0x20 //EEPROM access command
#define RAM_TOBJ1		0x07 //To1 address in the eeprom

uint16_t smbus_readmemory(uint8_t slaveAddress,uint8_t command);
uint8_t PEC_Calculation(uint8_t* pec);
